
export class Shop {
  static USER_TYPES = [
    { value: 1, name: "商家" },
    { value: 0, name: "测试" }
  ];
  static VERSION_TYPES = [
    { value: 0, name: "基础版" },
    { value: 1, name: "高级版" },
    { value: 2, name: "连锁版" },
    { value: 3, name: "试用版" },
    // { value: 4, name: "Meidoo 版" }
  ];
  static APPROVE_STATUSES = [
    { value: 0, name: "等待审核" },
    { value: 1, name: "审核通过" },
    { value: 2, name: "审核失败" },
    { value: 3, name: "重新审核" }
  ];
  static USABLE_STATUSALL = [
    // { value: -1, name: "删除" },
    { value: 1, name: "启用" },
    { value: 0, name: "停用" }
  ];
  static USABLE_STATUSES = [
    { value: 1, name: "启用" },
    { value: 0, name: "停用" }
  ];
  static SHOP_OPEN_PLATFORMS = [
    // { value: 1, name: "Dkdoo App" },
    // { value: 2, name: "微信" },
    { value: 3, name: "Meidoo" },
    // { value: 4, name: "分销" },
    // { value: 5, name: "小程序" },
  ];
  static COMPANY_OPEN_PLATFORMS = [
    { value: 6, name: "平板" },
    { value: 7, name: "开放部门" },
    { value: 8, name: "Vegas" },
    { value: 9, name: "英文版" },
  ];

  static OPEN_PLATFORMS_LIST = [
    { text: "微信小程序", value: 5 },
    { text: "dkdoo from", value: 6 },
    { text: "部门", value: 7 },
    { text: "Vegas App", value: 8 },
    { text: "英文版菜单", value: 9 },
    { text: "Nail Bar预约版本", value: 10 },
    { text: "Vegas 预约版本", value: 15 },
    { text: "JC Beauty 预约版本", value: 17 },
    { text: "Web Booking", value: 32 },
    { text: "服务员工", value: 11 },
    { text: "考勤", value: 12 },
    { text: "CRM", value: 13 },
    { text: "Mac控制", value: 14 },
    { text: "会员卡号", value: 16 },
    { text: "封存会员权限", value: 18 },
    { text: "公司预约列表", value: 19 },
    { text: "会员合并", value: 20 },
    // { text: "优惠", value: 21 },
    { text: "代理", value: 22 },
    { text: "服务评分", value: 23 },
    { text: "同意书", value: 24 },
    { text: "服务套餐按比例分配实际价值", value: 25 },
    { text: "商品采购", value: 27 },
    { text: "会员合伙人（分销）计划", value: 28 },
    { text: "外部链接", value: 29 },
    { text: "扣次卡服务拆分", value: 30 },
    { text: "公司库存管理", value: 31 },
    { text: "8+8预约推荐", value: 33 },
    { text: "外部消息", value: 34 },
    { text: "Global Payment", value: 35 },
    { text: "员工目标奖金", value: 36 },
    { text: "团队业绩", value: 37 },
    { text: "预约渠道", value: 38 },
    { text: "表格图片添加", value: 90001 }, // 9W以上为临时的，后续去掉，全平台开放
  ];
  static COMPANY_USER_TYPES = [
    { value: 1, name: "商家" },
    { value: 0, name: "测试" },
    { value: 2, name: "演示" }
  ];
  static UPGRADE_BUTTON_TYPES = [
    { value: 1, name: "新版本提示" },
    { value: 2, name: "系统维护通知" },
    { value: 3, name: "自定义" }
  ];
  static ONLINE_URL_MAP = {
    10: 'index',
    15: 'views',
    17: 'booking'
  };
  static PERMISSIONS_LIST = [
    { value: 'reservation.list', name: "预约列表" },
    { value: 'shop.list', name: "门店列表" },
    { value: 'member.list', name: "会员列表" },
    { value: 'member.add', name: "会员新增" },
    { value: 'member.update', name: "会员更新" },
    { value: 'member.findVip', name: "会员VIP查询" },
    { value: 'order.invalid', name: "作废订单" },
    { value: 'order.add', name: "新增收款" },
    { value: 'goods.add', name: "新增商品" },
    { value: 'goods.update', name: "修改商品" },
    { value: 'order.takeGoods', name: "取商品" },
    { value: 'message.maxId', name: "Message 最大值Id" },
    { value: 'message.listByIds', name: "Message 数据列表" },
  ]
}

export class DataImport {
  static INIT_OPTIONS = [
    {
      "__name": "会员套餐",
      "key": "memberPromotion",
      "normalConsume": {
        "name": "流水",
        "select": false,
      },
      "allowCostOtherItem": {
        "name": "总次数、扣格允许扣其它项目",
        "select": false,
      }
    },
    {
      "__name": "会员储值卡",
      "key": "memberPrepaidCard",
      "longExpired": {
        "name": "长期有效",
        "select": false,
      },
      "restConsumeAmount": {
        "name": "剩余消耗额",
        "select": false,
      },
      "useLimit": {
        "name": "使用限制",
        "select": false,
      }
    },
    {
      "__name": "储值卡设置",
      "key": "prepaidCards",
      "specified": {
        "name": "指定支付",
        "select": false,
      },
    },
    {
      "__name": "订单",
      "key": "orders",
      "payDetails": {
        "name": "生成支付详情",
        "select": false,
      },
      "sort": {
        "name": "修复支付顺序",
        "select": false,
      },
      "performanceType": {
        "name": "整单分配转项目",
        "select": false,
      },
    },
    {
      "__name": "经营数据分析",
      "key": "statistics",
      "course": {
        "name": "疗程",
        "select": false,
      },
      "pay": {
        "name": "支付方式统计",
        "select": false,
      },
      "memberSale": {
        "name": "会员消费统计",
        "select": false,
      },
      "spendAndConsume": {
        "name": "销售、消耗",
        "select": false,
      },
      "memberPrepaidCardsRest": {
        "name": "会员储值卡结余",
        "select": false,
      },
      "memberPromotionRest": {
        "name": "会员套餐结余",
        "select": false,
      },
      "userMonthPerformance": {
        "name": "员工数据汇总",
        "select": false,
      },
      "reservationStatistics": {
        "name": "预约统计",
        "select": false,
      }
    }
  ];
  static TYPE_LIST = ["string", "float", "date", "idCard", "email", "integer", "array", "object", "datetime", "boolean"]
}

export class ChargePlan {
  static get TYPE() {
    return {
      UNKNOWN: -1, // 未知
      FUTURE_USE: 0, // 未使用
      USED: 1, // 当前使用
    };
  }
  static DURATIONS = [
    { name: '1个月', value: 1 },
    { name: '2个月', value: 2 },
    { name: '3个月', value: 3 },
    { name: '半年', value: 6 },
    { name: '1年', value: 12 },
    { name: '2年', value: 12 * 2 },
    { name: '3年', value: 12 * 3 },
    { name: '4年', value: 12 * 4 },
    { name: '5年', value: 12 * 5 },
  ]
  static CHARGETYPE = {
    OPEN_PAY: 0, // 开通支付
    ADD_SHOP: 1, // 新增门店
    RENEW_PAY: 2, // 续费
    UPGRADE: 3, // 升级版本
  }
  static CHARGETYPE_NAME = {
    0: '开通支付',
    1: '新增门店',
    2: '门店续费',
    3: '升级版本',
    4: '修改有效期',
  }
}

export class Company {
  static COMPANY_CLIENT_TYPE_LIST = [
    { text: "独立使用dkdoo App", value: 1 },
  ];
}

export class Resource {
  static FILTER_CLIENT_TYPE_LIST = [
    { text: "dkdoo App", value: 1 },
  ];
}
